I have a script which creates some dialog boxes with some treeViews which have icons in the following structure.
Dialog box 1 has treeView 1, which has icons iconProject, iconFormal, iconNone, icon1, icon2, icon3. Icon1, Icon2 and Icon3 are user defined and loaded with the load function.
Dialog box 2 has treeView 2, which has icons green, red and grey which I get from function calls getRealColourIcon(realColor_Green), getRealColourIcon(realColor_Red), getRealColourIcon(realColor_Grey82).
I am having a bug where the icons are correctly set-up in the dialog boxes the first time I run the script after DOORS is opened. From the second time I run the script after DOORS is opened, icons from dialog box 2 start to appear wrongly: green, red and grey become icon1, icon2, and icon3 respectively.
Does anyone have a hint to what can be happening? It seems like Doors is reading icons from trash memory and therefore icons are getting substituted. It does not seem like there is something wrong with the code and it is weird that it only happens the first time I run the script.
camba - Fri Nov 17 05:47:14 EST 2017 |
Re: Icon Bug Solved it. The bug was that I was not destroying the icons properly. I made sure they were destroyed completely and the bug went away. |